Skip to content

Comments

panel : menu : fix label ; fix extra actions for grid view ; added css sizing/styling ; reduced search jank#358

Open
AKArien wants to merge 13 commits intoWayfireWM:masterfrom
AKArien:fix-menu
Open

panel : menu : fix label ; fix extra actions for grid view ; added css sizing/styling ; reduced search jank#358
AKArien wants to merge 13 commits intoWayfireWM:masterfrom
AKArien:fix-menu

Conversation

@AKArien
Copy link
Contributor

@AKArien AKArien commented Feb 22, 2026

Extra actions were previously made unavailable for grid mode, added them back.

The label position was put always on the side instead of the bottom for grid mode, put it back below.

General cleanups of the implementation and declaration of WfMenuMenuItem, as well as renamed it to WfMenuItem.

Made menu items sizeable by css (app-button) and by a new config option.

New configuration option to set spacing between menu items.

Reduced jank on search, it now behaves like a proper text input, at the price of eating the first key when user attempts to type while it is not focused.

Addresses #325

@AKArien
Copy link
Contributor Author

AKArien commented Feb 22, 2026

@trigg you’ll have to tell me if you too prefer this set of bugs ;)

@trigg
Copy link
Collaborator

trigg commented Feb 22, 2026

2026_02_22_12_27_53

I'm not certain max-character-width should be zero

@trigg
Copy link
Collaborator

trigg commented Feb 22, 2026

All the context-menu options are inactive in this PR.

@trigg
Copy link
Collaborator

trigg commented Feb 22, 2026

Left clicking an arrow in list-mode runs the default action and doesn't show the context menu

@trigg
Copy link
Collaborator

trigg commented Feb 22, 2026

Switching from list mode and back leaves the layout confused
2026_02_22_13_14_38

@AKArien
Copy link
Contributor Author

AKArien commented Feb 22, 2026

I'm not certain max-character-width should be zero

Honestly, i’m not so certain anymore i understand how the size requests work, as it seems ellipsising works fine in list mode. However, the way things currently are at least, i couldn’t get it to work properly with the flowbox as grid. It was fine-ish before because the size of the icons was hard-coded, but if it’s changeable, ellipsizing needs to work like as per this pr.

Switching from list mode and back leaves the layout confused

hu, i could have sworn i had fixed that…

@trigg
Copy link
Collaborator

trigg commented Feb 22, 2026

Looking much cleaner now! I'll give it another read through but I'm not seeing any breakage right now

@AKArien
Copy link
Contributor Author

AKArien commented Feb 22, 2026

Looking much cleaner now! I'll give it another read through but I'm not seeing any breakage right now

keep looking, it’s never far ;)

extra_actions_button.activate();
long_press_g->set_state(Gtk::EventSequenceState::CLAIMED);
left_click_g->set_state(Gtk::EventSequenceState::DENIED);
right_click_g->set_state(Gtk::EventSequenceState::DENIED);
Copy link
Collaborator

@trigg trigg Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to deny right_click_g here as it can't have been started. I don't think there's ramifications for doing this, but it isn't necessary.

A left click gesture would have started on a touch, but not a ->set_button(3) gesture

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants